
const baseUrl = 'http://192.168.3.31:9090/'
export const get = (url, params) => {
	return new Promise((resolve, reject) => {
		uni.request({
			url: `${baseUrl}${url}`,
			data: params,
			success: (res) => {
				resolve(res.data)
			},
			fail(e) {
				console.log('network error ' + e.errMsg)
			}
		})
	})
}